package com.example.amap.ui.map.ui.viewmodel

import androidx.lifecycle.ViewModel
import com.example.amap.manager.ServiceManager
import com.example.amap.service.IBusinessService
import com.example.amap.service.ILocationService
import com.example.amap.service.ISearchService
import com.example.amap.service.map.IMapService

abstract class BusinessViewModel : ViewModel(), IBusinessService {
    override fun getMapService(): IMapService? {
        return ServiceManager.getMapService()
    }

    override fun getSearchService(): ISearchService? {
        return ServiceManager.getSearchService()
    }

    override fun getLocationService(): ILocationService? {
        return ServiceManager.getLocationService()
    }
}